<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusMaterialPutTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_material_put', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('title')->nullable()->comment('标题');
            $table->string('odd_num')->nullable()->comment('单号');
            $table->dateTime('put_time')->nullable()->comment('入库时间');
            $table->string('supplier')->nullable()->comment('供应商');
            $table->tinyInteger('is_read')->nullable()->comment('是否已读');
            $table->unsignedBigInteger('user_id')->nullable()->comment('操作人');
            $table->tinyInteger('del_state')->nullable()->comment('删除状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_material_put');
    }
}
